Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix one-time memory leak of encoding_list #188

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

jhawthorn
Copy link

We memoize this result after calculating it, and the amount of memory is tiny, so this shouldn't cause any harm. Still it's good to fix so that tools can find more serious leaks.

This was found by compiling ruby with ASAN/LSAN and running:

ASAN_OPTIONS="detect_leaks=1" RUBY_FREE_AT_EXIT=1 bundle exec rake

We memoize this result after calculating it, and the amount of memory is
tiny, so this shouldn't cause any harm. Still it's good to fix so that
tools can find more serious leaks.

This was found by compiling ruby with ASAN/LSAN and running:

    ASAN_OPTIONS="detect_leaks=1" RUBY_FREE_AT_EXIT=1 bundle exec rake
@jhawthorn jhawthorn changed the title Fix one-time memory leak if encoding_list Fix one-time memory leak in encoding_list Nov 18, 2024
@jhawthorn jhawthorn changed the title Fix one-time memory leak in encoding_list Fix one-time memory leak of encoding_list Nov 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant